import Vue from 'vue'
import dataView from './data_view.vue'

const homeBox = Vue.extend(dataView)

dataView.show = function (data) {
  // eslint-disable-next-line new-cap
  let instance = new homeBox({data}).$mount()

  document.body.appendChild(instance.$el)

  Vue.nextTick(() => {
    instance.flag = true
  })

  return instance
}

export default dataView
